/*
 * Amazon Ads API - Sponsored Products
 * Use the Amazon Ads API for Sponsored Products for campaign, ad group, keyword, negative keyword, and product ad management operations. For more information about Sponsored Products, see the [Sponsored Products Support Center](https://advertising.amazon.com/help?entityId=ENTITY3CWETCZD9HEG2#GWGFKPEWVWG2CLUJ). For onboarding information, see the [account setup](setting-up/account-setup) topic.<br/><br/> 
 *
 * The version of the OpenAPI document: 2.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package org.openapitools.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.math.BigDecimal;

/**
 * NegativeTargetingClauseResponse
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-04-12T19:05:39.971406+08:00[Asia/Shanghai]")
public class NegativeTargetingClauseResponse {
  public static final String SERIALIZED_NAME_TARGET_ID = "targetId";
  @SerializedName(SERIALIZED_NAME_TARGET_ID)
  private BigDecimal targetId;

  public static final String SERIALIZED_NAME_CODE = "code";
  @SerializedName(SERIALIZED_NAME_CODE)
  private String code;

  public static final String SERIALIZED_NAME_DETAILS = "details";
  @SerializedName(SERIALIZED_NAME_DETAILS)
  private String details;

  public static final String SERIALIZED_NAME_DESCRIPTION = "description";
  @SerializedName(SERIALIZED_NAME_DESCRIPTION)
  private String description;


  public NegativeTargetingClauseResponse targetId(BigDecimal targetId) {
    
    this.targetId = targetId;
    return this;
  }

   /**
   * The negative target identifier.
   * @return targetId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The negative target identifier.")

  public BigDecimal getTargetId() {
    return targetId;
  }


  public void setTargetId(BigDecimal targetId) {
    this.targetId = targetId;
  }


  public NegativeTargetingClauseResponse code(String code) {
    
    this.code = code;
    return this;
  }

   /**
   * An enumerated response code.
   * @return code
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "An enumerated response code.")

  public String getCode() {
    return code;
  }


  public void setCode(String code) {
    this.code = code;
  }


  public NegativeTargetingClauseResponse details(String details) {
    
    this.details = details;
    return this;
  }

   /**
   * A human-readable description of the value in the &#x60;code&#x60; field.
   * @return details
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "A human-readable description of the value in the `code` field.")

  public String getDetails() {
    return details;
  }


  public void setDetails(String details) {
    this.details = details;
  }


  public NegativeTargetingClauseResponse description(String description) {
    
    this.description = description;
    return this;
  }

   /**
   * A human-readable description of the value in the &#x60;code&#x60; field.
   * @return description
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "A human-readable description of the value in the `code` field.")

  public String getDescription() {
    return description;
  }


  public void setDescription(String description) {
    this.description = description;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    NegativeTargetingClauseResponse negativeTargetingClauseResponse = (NegativeTargetingClauseResponse) o;
    return Objects.equals(this.targetId, negativeTargetingClauseResponse.targetId) &&
        Objects.equals(this.code, negativeTargetingClauseResponse.code) &&
        Objects.equals(this.details, negativeTargetingClauseResponse.details) &&
        Objects.equals(this.description, negativeTargetingClauseResponse.description);
  }

  @Override
  public int hashCode() {
    return Objects.hash(targetId, code, details, description);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class NegativeTargetingClauseResponse {\n");
    sb.append("    targetId: ").append(toIndentedString(targetId)).append("\n");
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
    sb.append("    details: ").append(toIndentedString(details)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

